package com.jeequan.jeepay.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeequan.jeepay.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

 /**
 * 用户费率表;
 * @author : wondream322@gmail.com
 * @date : 2023-8-19
 */
@ApiModel(value = "用户费率表",description = "")
@TableName("pay_member_rate")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PayMemberRate extends BaseModel implements Serializable,Cloneable{
    
     //gw
     public static final LambdaQueryWrapper<PayMemberDO> gw(){
         return new LambdaQueryWrapper<>();
     }
     
    /** 主键 */
    @ApiModelProperty(value = "主键",name = "主键",notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id ;
    /** 用户id */
    @ApiModelProperty(value = "用户id",name = "用户id",notes = "")
    private Integer memberId ;
    /** 通道ID */
    @ApiModelProperty(value = "通道ID",name = "通道ID",notes = "")
    private Integer payApiId ;
    /** 封顶手续费 */
    @ApiModelProperty(value = "封顶手续费",name = "封顶手续费",notes = "")
    private BigDecimal maxRate ;
    /** 银行费率 */
    @ApiModelProperty(value = "银行费率",name = "银行费率",notes = "")
    private BigDecimal rate ;
    /** 单笔固定手续费 */
    @ApiModelProperty(value = "单笔固定手续费",name = "单笔固定手续费",notes = "")
    private Integer fixedRate ;
    /** T0封顶手续费 */
    @ApiModelProperty(value = "T0封顶手续费",name = "T0封顶手续费",notes = "")
    private BigDecimal maxRateT0 ;
    /** T0成本费率 */
    @ApiModelProperty(value = "T0成本费率",name = "T0成本费率",notes = "")
    private BigDecimal rateT0 ;
    /** t0固定收费值 */
    @ApiModelProperty(value = "t0固定收费值",name = "t0固定收费值",notes = "")
    private Integer fixedRateT0 ;
    /** 状态：0-失效 1-有效 */
    @ApiModelProperty(value = "状态：0-失效 1-有效",name = "状态：0-失效 1-有效",notes = "")
    private Integer state ;
    /** 创建时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "创建时间",name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "更新时间",name = "更新时间",notes = "")
    private Date updateTime ;

}